package com.xiaoxiang.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (User)表实体类
 *
 * @author haha
 * @since 2022-03-24 13:41:12
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User extends Model<User> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 用户头像
     */
    private String imgUrl;

    /**
     * 是否可用
     */
    private Boolean isEnabled;

    /**
     * 是否已经删除
     */
    private Boolean isDeleted = false;
}
